from appium import webdriver
from appium.options.common import AppiumOptions
from appium.webdriver.common.appiumby import AppiumBy

from base.base_page import BasePage


class MainPage(BasePage):


    def goto_new_arrivals(self):
        from page.page_shopping.page_entrance_mi_new_arrivals import PageMiNewArrivals
        locator = "new UiSelector().text(\"分类\")"
        self._click(locator)
        return PageMiNewArrivals()

    def goto_publish(self):
        pass

    def goto_classify(self):
        locator = "new UiSelector().text(\"手机\")"
        self._click(locator)
        return self

    def goto_mine(self):
        pass

# if __name__ == "__main__":
#     page_main = MainPage()
#     page_main.goto_new_arrivals()
